﻿using System.ComponentModel.DataAnnotations;

namespace AnQinManagermentBackendAPI.Model.DTO.ImplementManagement
{
    /// <summary>
    /// 实施管理表模型 - 更新
    /// </summary>
    public class ImplementManagementUpdateDTO
    {
        /// <summary>
        /// 实施管理Id
        /// </summary>
        [Required(ErrorMessage = "实施管理Id不能为空")]
        public string Id { get; set; }

        /// <summary>
        /// 实施管理编码
        /// </summary>
        [Required(ErrorMessage = "实施管理编码Code不能为空")]
        public string Code { get; set; }

        /// <summary>
        /// 实施管理名称
        /// </summary>
        [Required(ErrorMessage = "实施管理名称Name不能为空")]
        public string Name { get; set; }

        /// <summary>
        /// 开发管理Id
        /// </summary>
        [Required(ErrorMessage = "开发管理DevelopId不能为空")]
        public string DevelopId { get; set; }

        /// <summary>
        /// 项目Id
        /// </summary>
        [Required(ErrorMessage = "项目ProjectId不能为空")]
        public string ProjectId { get; set; }

        /// <summary>
        /// 员工Id
        /// </summary>
        [Required(ErrorMessage = "员工StaffId不能为空")]
        public string StaffId { get; set; }

        /// <summary>
        /// 附件
        /// </summary>
        public string? File { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        [Required(ErrorMessage = "开始时间StartTime不能为空")]
        public DateTime StartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        [Required(ErrorMessage = "结束时间EndTime不能为空")]
        public DateTime Endtime { get; set; }
    }
}
